package isDim;

public class dimCargo {
	public enum Type { AC_MSG, REQUEST, NEW_FLIGHT, DEL_FLIGHT, STARTUP , PING, FORCE_UPDATE};
	public enum Kind { EVENT, ESTIMATION };
	
	private String message;
	private Type cargoType;
	private int flightNum;
	private Kind requestKind;
	
	public dimCargo(Type type, String msg)
	{
		message = msg;
		cargoType = type;
	}
	
	public dimCargo(Type type, int nro)
	{
		flightNum = nro;
		cargoType = type;
	}
	
	public dimCargo(Type type, Kind kind, int nro)
	{
		cargoType = type;
		requestKind = kind;
		flightNum = nro;
	}
	
	public dimCargo(Type type)
	{
		cargoType = type;
	}
	
	public Type type()
	{
		return cargoType;
	}
	
	public int flight()
	{
		return flightNum;
	}
	
	public String message()
	{
		return message;
	}
	
	public Kind kind()
	{
		return requestKind;
	}
}
